package com.atguigu.eduservice.client;

import com.atguigu.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(name = "service-vod")//熔断机制,fallback = VodFileDegradeFeignClient.class
@Component
public interface VodClient {
    //定义调用的方法路径
    //删除视频
    //细节：指定参数名称
    @DeleteMapping("/eduvod/video/removeAlyVideo/{id}")
    public R removeAlyVideo(@PathVariable("id") String id);

    //定义调用多个视频的方法
    @DeleteMapping("/eduvod/video/deletebatch")
    public R deleteBatch(@RequestParam("videoIdList") List<String> videoIdList);



}


